package com.training.web.repository;

import com.training.bean.Course;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface WebCourseRepository extends JpaRepository<Course, Integer> {
    @Query("select data from Course data where data.csid=:csid")
    List<Course> findCourseByCSId(int csid);
}
